*{
  padding: 0;
  margin: 0;
}
.nav{
  height: 60px;
  background: #38f;
  position: relative;
  h1{
    width: 1100px;
    margin: 0 auto;
    text-align: center;
    line-height: 60px;
  }
  .user{
    position: absolute;
    right: 10px;
    top: 0;
    line-height: 60px;
  }
  .signout{
    cursor: pointer;
    &:hover{
      color: red;
    }
  }
}


div.content{
  margin: 10px auto;
  width: 1100px;
  border: 1px solid #ccc;
  div.box{
    padding: 0 10px;
    height: 500px;
    background: #f5f6f7;
    overflow: auto;
    div.mess{
      overflow: hidden;
      padding: 10px 0;
      div.icon{
        float: left;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #3296fa;
        color: #fff;
        font-size: 14px;
        text-align: center;
        line-height: 40px;
      }
      div.info{
        float: left;
        width: 70%;
        span.name{
          padding: 0 30px 0 10px;
          color: #7a7d82;
          font-size: 14px;
        }
        span.time{
          color: #bbb;
          font-size: 12px;
        }
        div.mess-c{
          display: inline-block;
          margin-top: 4px;
          margin-left: 10px;
          padding: 6px;
          font-size: 14px;
          border: 1px solid #ededee;
          color: #191f25;
          background: #fff;
          border-radius: 4px;
          img{
            max-width: 100%;
          }
        }
      }
    }

    div.self{
      div.icon{
        float: right;

      }
      div.info{
        float: right;
        text-align: right;
        p{

          span.name{
            padding: 0 10px 0 30px;
            color: #7a7d82;
          }
        }
        div.mess-c{
          text-align: left;
          margin-right: 10px;
          background: #cce6ff;
          border-color: #bed6ee;
        }
      }
    }

  }
  div.edit{
    textarea{
      resize: none;
      width: 100%;
      box-sizing: border-box;
    }
    p.sendimg{
        width: 100px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        background: #649efd;
        color: #fff;
        position: relative;
    }
    p.sendimg{
        input{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
        }
        
    }
    div.btn-wrap{
      text-align: right;
      padding-bottom: 10px;
      span.btn{
        display: inline-block;
        width: 60px;
        height: 30px;
        background: #38f;
        color: #fff;
        text-align: center;
        line-height: 30px;
        cursor: pointer;
      }
    }

  }
}
